package com.ss.android.http.legacy.a;

import com.bytedance.frameworks.baselib.network.http.util.b;

public final class h {
    final int a;
    int b;

    public h(int arg3) {
        if(arg3 < 0) {
            throw new IndexOutOfBoundsException("Lower bound cannot be greater then upper bound");
        }
        this.a = arg3;
        this.b = 0;
    }

    public final void a(int arg2) {
        if(arg2 < 0) {
            throw new IndexOutOfBoundsException();
        }
        if(arg2 > this.a) {
            throw new IndexOutOfBoundsException();
        }
        this.b = arg2;
    }

    public final boolean a() {
        return this.b >= this.a;
    }

    public final String toString() {
        b v0 = new b(16);
        v0.a('[');
        v0.a(Integer.toString(0));
        v0.a('>');
        v0.a(Integer.toString(this.b));
        v0.a('>');
        v0.a(Integer.toString(this.a));
        v0.a(']');
        return v0.toString();
    }
}

